home *** CD-ROM | disk | FTP | other *** search
- Path: news.itg.ti.com!usenet
- From: drupp@ti.com (Dave Rupp)
- Newsgroups: comp.lang.rexx
- Subject: Re: ftp script
- Date: 16 Apr 1996 15:19:38 GMT
- Organization: Texas Instruments
- Distribution: inet
- Message-ID: <4l0dqa$13e@dsk92.itg.ti.com>
- References: <DpxxG9.263@solair1.inter.NL.net>
- Reply-To: drupp@ti.com (Dave Rupp)
- NNTP-Posting-Host: drupp.itg.ti.com
- X-Newsreader: IBM NewsReader/2 v1.09
-
- In <DpxxG9.263@solair1.inter.NL.net>, jwit00@solair1.inter.NL.net (J. de Wit) writes:
- >Hello,
- >
- >We haven a rexx script from which a ftp session is activated to another
- >system. It looks likes this :
- >user
- >put myfile
- >quit
- >
- >On the other system the account has no password or is empty. Still rexx is prompting for a password. So the script can't be executed from batch.
- >What we want is rexx preventing from asking for a password, by example if it is possible to add a ctrl enter after the user has been entered ??
- >
- >Thanks in advance...
-
- Here is a test OS/2 REXX script which worked using anonymous ftp to an OS/2 ftp
- server with no password.
-
-
- /* REXX */
- trace off;
- rc = 0;
- FTPERRNO = ''; /* init variable */
-
- rc = RxFuncAdd("FtpLoadFuncs","rxFtp","FtpLoadFuncs") /* Load REXX FTP */
- rc = FtpLoadFuncs() /* load ftp */
- rc = FtpSetUser("loopback","anonymous","") /* anon login */
- say rc" "FtpSetUser" "FTPERRNO /* build message */
- rc = FtpLogOff()
- say rc" "FtpLogOff" "FTPERRNO /* build message */
- rc = FtpDropFuncs()
- say rc" "FtpDropFuncs" "FTPERRNO /* build message */
- exit
-
- Dave Rupp
- Texas Instruments
- Distributed Network Services
- Dallas, Texas USA
- (214)575-4277
- (214)575-5522 FAX
- /ADMD=MCI/PRMD=TI/C=US/G=DAVID/I=M/S=RUPP
- drupp@ti.com Text only
- dave@drupp.itg.ti.com Binary data, UUENCODE or Base64
- http://www.ti.com/
-
-